package elion.vo.seed;

import android.os.Parcel;
import android.os.Parcelable;

public class Crop implements Parcelable {
    private String name;
    private String creat_time;
    private String little_name;
    private String lading_name;
    private String range1;
    private String grow_habit;
    private String value;
    private String img_url;
    //	private int del;//0：不是已开发利用；1：已开发利用
    private String category1;//大范围
    private String category2;//小范围

    public Crop() {

    }

    public Crop(String name, String creat_time, String little_name, String lading_name, String range1,
                String grow_habit, String value, String img_url, String category1, String category2) {
        super();
        this.name = name;
        this.creat_time = creat_time;
        this.little_name = little_name;
        this.lading_name = lading_name;
        this.range1 = range1;
        this.grow_habit = grow_habit;
        this.value = value;
        this.img_url = img_url;
        this.category1 = category1;
        this.category2 = category2;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setCreat_time(String creat_time) {
        this.creat_time = creat_time;
    }

    public void setLittle_name(String little_name) {
        this.little_name = little_name;
    }

    public void setLading_name(String lading_name) {
        this.lading_name = lading_name;
    }

    public void setRange1(String range1) {
        this.range1 = range1;
    }

    public void setGrow_habit(String grow_habit) {
        this.grow_habit = grow_habit;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public void setCategory1(String category1) {
        this.category1 = category1;
    }

    public void setCategory2(String category2) {
        this.category2 = category2;
    }

    public String getName() {
        return name;
    }

    public String getCreat_time() {
        return creat_time;
    }

    public String getLittle_name() {
        return little_name;
    }

    public String getLading_name() {
        return lading_name;
    }

    public String getRange1() {
        return range1;
    }

    public String getGrow_habit() {
        return grow_habit;
    }

    public String getValue() {
        return value;
    }

    public String getImg_url() {
        return img_url;
    }

    public String getCategory1() {
        return category1;
    }

    public String getCategory2() {
        return category2;
    }


    public static final Creator<Crop> CREATOR = new Creator<Crop>() {

        @Override
        public Crop createFromParcel(Parcel source) {
            return new Crop(source);
        }

        @Override
        public Crop[] newArray(int size) {
            return new Crop[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(name);
        dest.writeString(creat_time);
        dest.writeString(little_name);
        dest.writeString(lading_name);
        dest.writeString(range1);
        dest.writeString(grow_habit);
        dest.writeString(value);
        dest.writeString(img_url);
        dest.writeString(category1);
        dest.writeString(category2);

    }

    public Crop(Parcel source) {
        this.name = source.readString();
        this.creat_time = source.readString();
        this.little_name = source.readString();
        this.lading_name = source.readString();
        this.range1 = source.readString();
        this.grow_habit = source.readString();
        this.value = source.readString();
        this.img_url = source.readString();
        this.category1 = source.readString();
        this.category2 = source.readString();
    }
}
